-
Notifications
You must be signed in to change notification settings - Fork 188
worker: rename to source worker and provide source-level status #2076
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
2c28911
to
e37dbd3
Compare
/run-unit-tests |
@@ -37,56 +34,34 @@ func (l *Loader) Status() interface{} { | |||
MetaBinlog: l.metaBinlog.Load(), | |||
MetaBinlogGTID: l.metaBinlogGTID.Load(), | |||
} | |||
go l.printStatus() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use another goroutine to printstatus?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just want to reduce blocking time, but seems it's not that slowly 😂 wait for another reviewer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 3b38321
|
In response to a cherrypick label: new pull request created: #2109. |
What problem does this PR solve?
close #2075
What is changed and how it works?
Unit.Status(*SourceStatus)
to unit can calculate fields like "catchup with master"Unit.Status(*SourceStatus)
, unit will print status log. So if SourceWorker periodically invokeUnit.Status(*SourceStatus)
the status log can be printed periodically like beforeCheck List
Tests
Code changes
Related changes